import axios from './http'
import qs from 'qs'
import base from './base'

const buyDetail = {
  getDetail (params) {
    return axios.post(`${base.pro}/api/product/handbookDetail`, qs.stringify(params))
  },
  getSwiper (params) {
    return axios.post(`${base.pro}/api/communal/carousel`, qs.stringify(params))
  },
  getPost (params) {
    return axios.post(`${base.pro}/api/order/createOrder`, qs.stringify(params))
  },
  getAddress (params) {
    return axios.post(`${base.pro}/api/order/getOrderAddr`, qs.stringify(params))
  }
}
export default buyDetail
